Search
Rect Constructor
See Also
 





Initializes a new instance of the Rect class.

Namespace: MindFusion.Drawing
File: Rect.js

 Syntax

JavaScript  Copy Code

function Rect (x, y, [width, [height]])

 Parameters

x

Number | Point. The X-coordinate of the top left corner of the rectangle.

y

Number | Size. The Y-coordinate of the top left corner of the rectangle.

width
Optional.

Number. The width of the rectangle.

height
Optional.

Number. The height of the rectangle.

 See Also